// Client.h: interface for the CClient class.
//
//////////////////////////////////////////////////////////////////////

#pragma once

#include <Sock.h>	
#include <Parser.h>	// Added by ClassView


class CClient  
{
	
public:
	int Init();


	int Send( char* szMsg, size_t nLen );
	int Recv( char* szPacket, size_t& nPacketSize );

	void Close() { m_Socket.Close(); }

	void SetSocket( CSock Sock ) { m_Socket = Sock; }
	CSock* GetSocket() { return &m_Socket; }

	size_t GetIdent() const { return m_nIdent; }
	void SetIdent( size_t nIdent ) { m_nIdent = nIdent; }

	CClient();
	virtual ~CClient();

private:
	CParser* m_Parser;
	CSock m_Socket;

	size_t m_nIdent;

protected:

	
};


